/* 设置首页样式 */

/* banner区域 */
.banner {
    height: 500px;
    background-color: #F5F5F5;
}

.banner .wrapper {
    position: relative;
    overflow: hidden;
    height: 500px;
    background-color: pink;
}

/* 图片 */
.banner .img {
    display: flex;
    width: 3720px;
}

/* 侧边栏 */
.banner .subnav {
    position: absolute;
    left: 0;
    top: 0;
    width: 250px;
    height: 500px;
    background-color: rgb(0, 0, 0, 0.42);
}

.banner .subnav li {
    display: flex;
    justify-content: space-between;
    padding-left: 30px;
    padding-right: 12px;
    height: 50px;
    line-height: 50px;
    cursor: pointer;
}

.banner .subnav li:hover {
    background-color: #00BE9A;
}

.banner .subnav li a {
    margin-right: 5px;
    font-size: 14px;
    color: #fff;
}

.banner .subnav li .classify {
    margin-right: 14px;
    font-size: 16px;
}

.banner .subnav .iconfont {
    font-size: 12px;
    color: #fff;
}

/* 圆点指示器 */
.banner .wrapper ol {
    display: flex;
    position: absolute;
    bottom: 17px;
    right: 16px;
}

.banner ol li {
    width: 22px;
    height: 22px;
    /* background-color: pink; */
    border-radius: 50%;
    cursor: pointer;
}

.banner ol .active {
    background-color: rgb(255, 255, 255, 0.5);
}

.banner ol .active i {
    background-color: #fff;
}

.banner ol li i {
    display: block;
    margin: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255, 0.5);
}

/* 新鲜好物 */
/* 标题--公共样式 */
.hd {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 30px;
    height: 42px;
    /* background-color: pink; */
}

.hd .left {
    display: flex;
}

.hd .left h3 {
    font-size: 30px;
    font-weight: 400;
}

.hd .left p {
    margin-left: 35px;
    align-self: flex-end;
    color: #A1A1A1;
}

.hd .right a {
    display: flex;
    line-height: 42px;
}

.hd .right p {
    color: #A1A1A1;
}

.hd .right .iconfont {
    margin-left: 10px;
    font-size: 12px;
    color: #A1A1A1;
}

/* 主题内容--公共样式 */
.bd ul {
    display: flex;
    justify-content: space-between;
}

.bd li {
    width: 304px;
    height: 404px;
    background-color: #EEF9F4;
}

.bd li img {
    width: 304px;
    height: 304px;
}

.bd li h4 {
    margin-top: 18px;
    margin-left: 8px;
    font-size: 20px;
    text-align: center;
}

.bd li p {
    font-size: 18px;
    color: #AA2113;
    text-align: center;
}

.bd li p span {
    margin-left: 3px;
    font-size: 22px;
}

/* 人气推荐 */
.recommend .bd h4 {
    margin-top: 18px;
    margin-bottom: 15px;
}

.recommend .bd li {
    background-color: #fff;
}

.recommend .bd p {
    font-size: 16px;
    color: #A1A1A1;
}

/* 热门品牌 */
.brand {
    margin-top: 60px;
    height: 468px;
    background-color: #F5F5F5;
    /* 防止塌陷 */
    overflow: hidden;
}

.brand .hd {
    position: relative;
    margin-bottom: 40px;
}

.brand .hd .button {
    position: absolute;
    right: 0;
    bottom: -25px;
    /* 改显示模式为flex，让a在一行排列，同时显示模式为弹性盒子 */
    display: flex;
}

.brand .hd .button a{
    margin-left: 12px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #ddd;
    color: #fff;
}

.brand .hd .button .active {
    background-color: #00BE9A;
}

/* 内容部分 */
.brand .bd ul {
    display: flex;
    justify-content: space-between;
}

.brand .bd li img {
    width: 244px;
    height: 306px;
}

/* 生鲜 */
.fresh {
    margin-top: 60px;
    margin-bottom: 20px;    
}
.fresh .hd .right {
    display: flex;
}

.fresh .hd .right ul {
    display: flex;
    margin-top: 10px;
    margin-right: 58px;
}

.fresh .hd .right li a {
    display: block;
    padding: 0 7px;
    height: 20px;
    line-height: 20px;
}

.fresh .hd .right li .active {
    background-color: #00BE9A;
    color: #fff;
}

/* 产品内容--公共样式 */
.content {
    display: flex;
    justify-content: space-between;
}

.content .left {
    width: 248px;
    height: 610px;
}

.content .right {
    width: 968px;
    height: 610px;
}

.content ul {
    display: flex;
    flex-wrap: wrap;
}

.content li {
    position: relative;
    padding: 10px 21px;
    width: 242px;
    height: 305px;
    border: 2px solid #fff;
    overflow: hidden;
}

.content li:hover {
    border: 2px solid #00BE9A;
}

.content li:hover .cover {
    bottom: 0;
    transition: 1s;
}

.content li .info {
    margin-top: 15px;
    margin-bottom: 5px;
    height: 60px;
}

.content li .info h4 {
    line-height: 20px;
}

.content li .info p {
    line-height: 20px;
}

.content li .price {
    font-size: 18px;
    color: #AF2F22;
}

.content li .price span {
    margin-left: 5px;
    font-size: 22px;
}

.content li .cover {
    position: absolute;
    left: 0;
    bottom: -84px;
    width: 242px;
    height: 84px;
    text-align: center;
    background-color: #00BE9A;
}

.content li .cover p:nth-child(1) {
    margin-top: 16px;
    font-size: 18px;
    color: #fff;
}

.content li .cover p:nth-child(2) {
    margin: 3px auto 6px;
    width: 120px;
    border: 2px solid rgb(255, 255, 255, 0.11);
}

.content li .cover p:nth-child(3) a {
    font-size: 13px;
    color: #fff;
} 

.content li .cover p:nth-child(3) .iconfont {
    font-size: 8px;
    margin-left: 5px;
}

/* 最新专题 */
.topic {
    margin-top: 100px;
    margin-bottom: 30px;
}

.topic-bd ul {
    display: flex;
    justify-content: space-between;
}

.topic-bd li {
    width: 405px;
    height: 355px;
    /* background-color: #F5F5F5; */
}

.topic-bd li .pic {
    position: relative;
    width: 405px;
    height: 288px;
}

.topic-bd .text {
    display: flex;
    justify-content: space-between;  
    align-items: center;
    
    padding: 0 15px;

    height: 67px;
    font-size: 14px;
    color: #666;
}

.topic-bd .text .left {
    display: flex;
}

.topic-bd .text .left:nth-child(1) i:first-child {
    color: #AA2113;
}

.topic-bd .text .left p {
    margin-right: 20px;
}


.topic-bd .text .right {
    display: flex;
}

.topic-bd .pic .cover {
    position: absolute;
    left: 0;
    bottom: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 15px;

    width: 405px;
    height: 90px;
    background-image: linear-gradient(180deg, rgba(137,137,137,0.00) 0%, rgba(0,0,0,0.90) 100%);
    
    color: #fff;
}

.topic-bd .pic .cover .left h4 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 6px;
}

.topic-bd .pic .cover .right {
    padding: 0 7px;

    height: 25px;
    background-color: #fff;

    color: #AA2113;
}

.topic-bd .pic .cover .right span {
    font-size: 18px;
}